/**
 * @Author: YU
 * @Date: 2021-10-24 22:43:56
 * @LastEditTime: 2021-10-24 22:43:58
 * @LastEditors: YU
 * @Description: 用户api
 */
import request from '@/utils/request'

/**
 * @description: 用户登录
 * @param {*}
 * @return {*}
 */
export const login = data => {
  return request({
    method: 'POST',
    url: '/v1_0/authorizations',
    data
  })
}

/**
 * @description: 获取验证码
 * @param {*}
 * @return {*}
 */
export const getSmsCode = mobile => {
  return request({
    method: 'GET',
    url: `/v1_0/sms/codes/${mobile}`
  })
}
